package com.example.demo.dao;

import com.example.demo.entity.SHR;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface SHRRepository extends JpaRepository<SHR, Integer> {

    @Query(value = "select * from shr where sno=:sno", nativeQuery = true)
    SHR findBySno(@Param("sno") String sno);
}
